package com.tpe.model.generic.repository;

import java.util.List;

import javax.ejb.Local;

@Local
public interface GenericCrudRepository<T> {

	T criar(T entity) throws Exception;

	void deletar(T entity) throws Exception;

	T atualizar(T entity) throws Exception;

	T obterPorId(Long entityId) throws Exception;

	List<T> obterTodos() throws Exception;

}
